package com.ilvyou.api.common;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by GuanYuCai on 2016/9/6 0006.
 */
public class Constant {
    public static final int OK = 200;
    public static final int LOGIN = 201;
    public static final int ERR = 202;

    public static final int SMS_DEADLINE = 15 * 60 * 1000;
    public static final int PAGE_SIZE = 10;

    public interface Status{
        public static final int UNBIND_PHONE = 1;
    }

    // BPP账户类型
    public interface BppAccountType{
        // BPP账户类型-专线商
        public final static int BPP_AGENT_CATEGORY_SPECIAL = 5;
        // BPP账户类型-旅行社
        public final static int BPP_AGENT_CATEGORY_TRAVEL = 1;
        // BPP账户类型-其他
        public final static int BPP_AGENT_CATEGORY_OTHER = 0;
    }

    // 发送短信的短信类型
    public interface SMSType{
        // 账号注册
        public final static int REGISTER = 1;
        // 找回密码
        public final static int RETRIEVE = 2;
        // 解绑手机号
        public final static int UNBIND_MOBILE = 3;
        // 绑定手机号
        public final static int BIND_MOBILE = 4;
        // 重置登录密码
        public final static int RESET_LOGIN = 5;
        // 重置交易密码
        public final static int RESET_TRADE = 6;
        // 重置安全问题账号注册
        public final static int RESET_QUESTION = 7;
        // 添加银行卡
        public final static int ADD_BANKNUM = 8;
    }

    public static final Map<Integer, String> sms = new HashMap<Integer, String>(){
        {
            put(1, "账号注册");
            put(2, "找回密码");
            put(3, "解绑手机号");
            put(4, "绑定手机号");
            put(5, "重置登录密码");
            put(6, "重置交易密码");
            put(7, "重置安全问题");
            put(8, "添加银行卡");
        }
    };
}
